package com.youaishujuhui.devops.web.domain.manage;

import java.util.List;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.ManyMany;
import org.nutz.dao.entity.annotation.Table;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Table("t_sys_role")
@Getter
@Setter
@ToString
public class SysRole {
	
	@Id
    private int roleId;
	
	@Column
	private String code;
	
	@Column
	private String name;
	
	@ManyMany(relation = "t_role_resource", from = "roleId", to = "resId")
	private List<SysResource> resources;
	
	private boolean checked;
}
